package work.kingcrab.file.server.enums;

import lombok.Getter;

/**
 * @author Yousheng Tao
 * @description tools
 * @since 2020/7/30 17:53
 */
public enum FileMimeEnums {
    /**
     * css
     */
    UPLOAD_CSS("text/css"),
    /**
     * js
     */
    UPLOAD_JS("text/javascript"),
    /**
     * html/htm
     */
    UPLOAD_HTML("text/html"),
    /**
     * doc
     */
    UPLOAD_DOC("application/msword"),
    /**
     * docx
     */
    UPLOAD_DOCX("application/vnd.openxmlformats-officedocument.wordprocessingml.document"),
    /**
     * xls
     */
    UPLOAD_XLS("application/vnd.ms-excel"),
    /**
     * xlsx
     */
    UPLOAD_XLSX("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),
    /**
     * txt
     */
    UPLOAD_TXT("text/plain"),
    /**
     * ppt
     */
    UPLOAD_PPT("application/vnd.ms-powerpoint"),
    /**
     * pptx
     */
    UPLOAD_PPTX("application/vnd.openxmlformats-officedocument.presentationml.presentation"),
    /**
     * jpg
     */
    UPLOAD_JPG("image/jpeg"),
    /**
     * png
     */
    UPLOAD_PNG("image/png"),
    /**
     * webp
     */
    UPLOAD_WEBP("image/webp"),
    /**
     * gif
     */
    UPLOAD_GIF("image/gif"),
    /**
     * bmp
     */
    UPLOAD_BMP("image/bmp"),
    /**
     * mp4
     */
    UPLOAD_MP4("video/mp4")
    ;
    @Getter
    private final String mime ;
    FileMimeEnums(String mime){
        this.mime = mime ;
    }
}
